home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Misc / InstallerNG / developer / gui / example / igui_Message.c < prev    next >
C/C++ Source or Header  |  1999-10-31  |  1KB  |  63 lines

  1.  
  2. #include "includes.h"
  3. #include "installergui_data.h"
  4.  
  5. /********************************************************************
  6.  *
  7.  *  DESCRIPTION
  8.  *
  9.  */
  10.  
  11. /********************************************************************
  12.  *
  13.  *  STATIC
  14.  *
  15.  */
  16.  
  17. /********************************************************************
  18.  *
  19.  *  EXTERN
  20.  *
  21.  */
  22.  
  23. /********************************************************************
  24.  *
  25.  *  PUBLIC
  26.  *
  27.  */
  28.  
  29. /********************************************************************
  30.  *
  31.  *  CODE
  32.  *
  33.  */
  34.  
  35. char * __asm igui_Message(register __a0 APTR application,
  36.                           register __a1 struct FunctionEnvironment *localenv,
  37.                           register __a2 char *text)
  38. {
  39.   #ifdef DEBUG
  40.   DEBUG_MAKRO
  41.   //KPrintF("%s\n", (long) text);
  42.   #endif
  43.  
  44.   // create a simple text object an sho it
  45.   if (guistuff_NewContent(application, guistuff_InitSimpleText(text)))
  46.   {
  47.     struct Application *app = (struct Application *) application;
  48.     
  49.     // maybee BACK (if specified) or respect the swing mode
  50.     if (localenv->fe_Back)         { guistuff_SetBackButton(app, TRUE); }
  51.     else if (!app->app_SWING_Mode) { igui_NameCancel(app, (char *) app->app_GlobalEnv[GENV_ABORT_BUTTON]); }
  52.  
  53.     // wait for the user
  54.     igui_WaitApp(app);
  55.     
  56.     if (localenv->fe_Back) { guistuff_SetBackButton(app, FALSE); }
  57.   }
  58.  
  59.   // the empty panel...
  60.   igui_EmptyPanel(application);
  61.   return (text);
  62. }
  63.